package com.boolib.tree.entity;


import java.io.Serializable;
import java.util.List;

public class BaseTreeGrid<T> implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -9189631784252440402L;

    protected Integer id;//节点id

    protected Integer parentId;//节点父id


    protected List<T> children;//孩子节点


    public BaseTreeGrid() {

    }

    public BaseTreeGrid(Integer id, Integer parentId) {
        this.id=id;
        this.parentId=parentId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }



    public List<T> getChildren() {
        return children;
    }

    public void setChildren(List<T> children) {
        this.children = children;
    }

}

